<template>
	<van-button type="primary" @click="toList">返回列表页</van-button>
</template>

<script setup>
	import { useRouter, useRoute } from 'vue-router';

	const router = useRouter()
	const route = useRoute()

	const toList = () => {
		// router.go(-1)
		router.push({
			name: 'List',
			query: {
				timeStr: route.query.timeStr ? route.query.timeStr : new Date().getTime()
			}
		})
	}
</script>

<style>
</style>